package data;
import java.util.ArrayList;


/**
 * @author Administrator
 *
 */
public class WorkerData {
	
	private ArrayList<WorkerRecord> workList=new ArrayList<WorkerRecord>();
	
	String fileName = "workers.txt";
	
	
	/**
	 * 
	 */
	public WorkerData(){
		
	}
	
	
	/**
	 * @param ID
	 * @return WorkerRecord
	 */
	public WorkerRecord getWorkerByID(String ID){
		for(int i=0;i<workList.size();i++){
			WorkerRecord worker=workList.get(i);
			if(worker.getID().equals(ID)){
				return worker;
			}
		}
        return null;
	}
}
